<?php
  $action = $_REQUEST["action"];
  $requestArray = array(
                 "lan_id"   => $_REQUEST[lan_id],
                 "seg_id"  => "s".$dbUtilObj->getTableCounter(LANSEGMENT), 
				 "seg_name"  => $_REQUEST[seg_name],
				 "seg_count" => $_REQUEST[seg_count],
				 "seg_desc" => $_REQUEST[seg_desc]
				);
  if ($action == "addNew")
     $dbUtilObj -> dynamicInsert($requestArray,LANSEGMENT);

  if ($action == "delete")
     $dbUtilObj -> dynamicDelete($_REQUEST[id],LANSEGMENT);	
	 
  if ($action == "update")
  {
     $excludeFields = "seg_id";
     $dbUtilObj -> dynamicUpdate($requestArray,LANSEGMENT,$_REQUEST[id],$excludeFields);	
  }
	 
  $pageId=3;
?>